package com.chuangjiangx.member.basic.ddd.domain.service.model;

import com.chuangjiangx.member.basic.ddd.domain.model.OperationInfo;
import com.chuangjiangx.member.basic.ddd.domain.model.MbrScoreGiftRuleId;
import com.chuangjiangx.member.basic.ddd.domain.model.MemberId;
import lombok.Getter;
import lombok.ToString;

/**
 * 兑换商品参数
 * Created by YangKuo on 2017/9/27.
 */
@Getter
@ToString
public class ConvertGift {

    /**
     * 会员id
     */
    private MemberId memberId;

    /**
     * 商品id
     */
    private MbrScoreGiftRuleId mbrScoreGiftRuleId;

    /**
     * 兑换门店信息
     */
    private OperationInfo operationInfo;

    /**
     * 兑换商品参数（用于application构建）
     *
     * @param memberId      会员id
     * @param mbrScoreGiftRuleId   商品id
     * @param operationInfo 兑换门店信息
     */
    public ConvertGift(MemberId memberId, MbrScoreGiftRuleId mbrScoreGiftRuleId, OperationInfo operationInfo) {
        this.memberId = memberId;
        this.mbrScoreGiftRuleId = mbrScoreGiftRuleId;
        this.operationInfo = operationInfo;
    }
}
